﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.DALFactory;

namespace YouHP.BLL
{
    public class DatabaseBLL
    {
        #region 单件模式
        static DatabaseBLL _Instance;

        public static DatabaseBLL Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new DatabaseBLL();
                }
                return _Instance;
            }
        }
        #endregion

        public bool InstallDatabase()
        {
            return DataAccess.DatabaseDAL.InstallDatabase();
        }

        public bool InstallSP()
        {
            return DataAccess.DatabaseDAL.InstallSP();
        }
    }
}
